package cn.yxl.org.service;

import cn.yxl.basic.utils.PageList;
import cn.yxl.org.domain.Department;
import cn.yxl.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    //查全部
    List<Department> queryAll();
    //基于id查询
    Department queryById(Long id);
    //新增
    void save(Department department);
    //修改
    void update(Department department);
    //删除
    void delete(Long id);
    //分页查询+条件    当前页,每页显示条数
    //分页+条数
    PageList<Department> queryByPage(DepartmentQuery query);


}
